home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98a.txt / 000100_icon-group-sender _Thu Mar 5 08:21:31 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  3KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.7/8.8.7) with SMTP id IAA29054
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Thu, 5 Mar 1998 08:21:31 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA07338; Thu, 5 Mar 1998 08:21:30 -0700
  7. Message-Id: <34FEC116.4952@gte.net>
  8. Date: Thu, 05 Mar 1998 09:13:26 -0600
  9. From: Mark Evans <evans@gte.net>
  10. Reply-To: evans@gte.net
  11. Organization: None
  12. X-Mailer: Mozilla 3.01 (Win95; I)
  13. Mime-Version: 1.0
  14. To: icon-group@optima.CS.Arizona.EDU
  15. Subject: Re: Icon to C conversion: C++ instead
  16. References: <Pine.A32.3.91.980304210200.30650A-100000@pluto.mscc.huji.ac.il>
  17. Content-Type: text/plain; charset=us-ascii
  18. Content-Transfer-Encoding: 7bit
  19. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  20. Status: RO
  21. Content-Length: 1541
  22.  
  23. Ehud Lamm wrote:
  24. > The question really isn't wether C strings can be used as Icon strings,
  25. > but rather that in order to produce good C code to function exactly like
  26. > the Icon code (as compiled Icon should), you have first to deeply explore
  27. > the bset ways to do the desired things in C. You shouldn't only think
  28. > about compilation techniques and optimizations.
  29. > Ehud Lamm     mslamm@pluto.mscc.huji.ac.il
  30.  
  31.  
  32. Agreed.  We've been talking about C; a point probably missed in these
  33. talks is that C++ could be the optimum route.
  34.  
  35. An (Icon)-->(C++) converter could base its conversion on a true class
  36. library, not just a mere function library.  CString might be one of
  37. them, CStream another.  My point is that there already exist large class
  38. libraries in C++ and many of them are free on the web.  So rather than
  39. doing a lot of design, one could in principle just go shopping.
  40.  
  41. Type information for the classes should be available at runtime and at
  42. compile time.  That is the case with Microsoft VC++ 5.0 anyway.  That
  43. fact might resolve some of the typing issues in Icon.  I agree with the
  44. idea that typing should be available in Icon as an option, per Paul
  45. Abrahams.  It is a compiler optimization hint, essentially.
  46.  
  47. All of the C++ compilers that I know about nowadays are native C++
  48. compilers; that is, they don't use the old CFront method of
  49. preprocessing C++ code into mangled-C code and then compiling the
  50. mangled-C with a C compiler.  So they are quite efficient and elegant. 
  51. They compile C++ directly into machine code.
  52.  
  53. Mark
  54.  
  55.